package com.contract.spirit.ui.order.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.contract.spirit.R
import com.contract.spirit.bean.entity.OrderInfo
import com.contract.spirit.databinding.AdapterOrderItemBinding

/**
 * @author: zhengjun
 * created: 2021/9/28
 * desc:
 */
class OrderAdapter : BaseQuickAdapter<OrderInfo,BaseDataBindingHolder<AdapterOrderItemBinding>>(
    R.layout.adapter_order_item,
    ArrayList()
) {
    override fun convert(holder: BaseDataBindingHolder<AdapterOrderItemBinding>, item: OrderInfo) {
        holder.dataBinding?.apply {
            this.item = item
            addChildClickViewIds(R.id.tv_gain)
        }
    }
}